var User = new function(){
	this.getUser = function(onSuccess){
	Ext.Ajax.request({
			url: 'openid',
			success: function(resp) {
				var result = Ext.decode(resp.responseText);
				if (result.login){
					return;
				}
				
				if (onSuccess){
					onSuccess();
				}
				return;
			},
			failure: function(resp){
				alert(resp.responseText);
			}
			
		});
	}
	};